// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Vuex from 'vuex';

import FastClick from 'fastclick'
import VueRouter from 'vue-router'
import App from './App'
import Home from './components/HelloFromVux'
import Sender from './components/Sender'
import ExprssSelect from './components/ExprssSelect'
import Sites from './components/Sites'
// import Pay from './components/Pay'
import { WechatPlugin } from 'vux'
import Order from './components/Order'
import Pay from './components/Pay'
import Receive from './components/Receive'
import Texts from './components/Texts'
import VueResource from 'vue-resource';
import  { ToastPlugin } from 'vux'
import { ConfirmPlugin } from 'vux'
Vue.use(WechatPlugin)
console.log(Vue.wechat)
Vue.use(ConfirmPlugin)
Vue.use(ToastPlugin)
Vue.use(VueRouter)
Vue.use(Vuex)
Vue.use(VueResource);


const routes = [{
        path: '/',
        name:'Home',
        component: Home
    },
    {
        path: '/Sender',
        name:'Sender',
        component: Sender
    },
    {
        path:'/Receive',
        component:Receive
    },
    {
        path: '/ExprssSelect',
        component: ExprssSelect
    },
    {
        path: '/Sites',
        component: Sites
    },
    {
        path: '/Order',
        component: Order
    },
    {
        path: '/Pay',
        component: Pay
    },
    {   
        path:'/Texts',
        component:Texts
    }
]

const router = new VueRouter({
    routes
})

FastClick.attach(document.body)

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
    router,
    render: h => h(App)
}).$mount('#app-box')